<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <style type="text/css">
        .aui-list .aui-list-item-media {
            width: 3rem;
        }
        .notes-add {
            position: fixed;
            left: 0.5rem;
            bottom: 0.5rem;
            width: 3rem;
            z-index: 99;
        }
        textarea {
            height: 8rem;
            background-color: #ffffff;
            padding: 0.5rem;
        }
        .photos img {
            display: block;
            width: 100%;
        }
        .add-photos > div {
            width: 100%;
            height:5.15rem;
            line-height: 5.15rem;
        }
        .add-photos > div .aui-iconfont {
            font-size: 2rem;
            color: #ccc;
        }
        .image-item {
            position: relative;
            height: 5.3rem;
            overflow: hidden;
            background-color: #f0f0f0;
        }
        .image-item img {
            display: block;
            margin: 0 auto;
            width: auto;
            height: 100%;
        }
        .image-item .delete-btn {
            position: absolute;
            left: 50%;
            top: 50%;
            width: 28px;
            height: 28px;
            background-color: rgba(0,0,0,0.7);
            margin-left: -14px;
            margin-top: -14px;
            color: #ffffff;
            text-align: center;
            border-radius: 50%;
        }
    </style>
</head>
<body>
    <p class="aui-margin-t-15 aui-margin-l-15"><span>签到时间：</span><span id="signtime"><!-- 2017-07-27 09:10:45 --></span></p>
    <section class="aui-content-padded">
        <div class="aui-card-list">
            <div class="aui-card-list-header">签到说明：</div>
            <div class="aui-card-list-content-padded" id="remarks"></div>
        </div>
    </section>
    <section class="aui-content-padded aui-clearfix">
        <div class="aui-info">
            <div class="aui-info-item aui-padded-r-10">
                <div>
                    <i class="aui-iconfont aui-icon-location"></i>
                    <span id="place"></span>
                </div>
            </div>
        </div>
    </section>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/zepto.min.js"></script>
<script type="text/javascript" src="../script/aui-toast.js"></script>
<script type="text/javascript">
    apiready = function(){
        function load () {
            // 加载内容
            api.ajax({
                url: ServeUrl + 'm=Sign&a=getSignDetails',
                method: 'post',
                data: {
                    values: {
                        id: api.pageParam.id,
                    },
                },
                dataType : 'json',
            }, function(ret, err) {
                if (ret) {
                    $('#signtime').html(ret.signtime);
                    $('#remarks').html(ret.remarks);
                    if (ret.sematic_description) {
                        var place = ret.place+" "+ret.sematic_description;
                    } else {
                        var place = ret.place;
                    }
                    $('#place').html(place);
                }
            });
        }
        load();
    };
    function closeWin(){
        api.closeWin({});
    }



</script>
</html>
